home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Nave / BombPearlHarbor.swf / scripts / DefineSprite_33 / frame_2 / DoAction.as
Text File  |  2006-06-13  |  333b  |  15 lines

  1. _X = _X + gunmove;
  2. bombY = getProperty("/drop", _Y);
  3. bombX = getProperty("/drop", _X);
  4. gunboatY = _Y;
  5. gunboatX = _X;
  6. if(gunboatY < BombY and BombY < gunboatY + "37" and gunboatX - "42" < BombX and BombX < gunboatX + "42")
  7. {
  8.    gotoAndPlay(4);
  9.    tellTarget("/drop")
  10.    {
  11.       gotoAndStop("boom");
  12.       play();
  13.    }
  14. }
  15.